package cn.jy.finanlle.mapper;


import cn.jy.common.domain.financea.ExpressAccount;
import cn.jy.common.domain.vo.ExpressAccountVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpressAccountMapper
{
    /**
     * 查询finance
     *
     * @param id finance主键
     * @return finance
     */
    public ExpressAccount selectExpressAccountById(Long id);

    /**
     * 查询finance列表
     *
     * @param expressAccount finance
     * @return finance集合
     */
//    @Select("<script>"
//            + "select * from express_account"
//            + " <where>"
//            + " 	<if test=\"id != null and id != ''\"  > "
//            + "	    and id = #{id} or phone=#{id}"
//            + "	</if>"
//            + "</where>"
//            + "</script>"
//         )

//    分页展示所有
    public List<ExpressAccount> selectExpressAccountList(ExpressAccountVo expressAccountVo);

    public int updatestatus1(@Param("id") Integer id);

    public int updatestatus2(@Param("id") Integer id);


    /**
     * 新增finance
     *
     * @param expressAccount finance
     * @return 结果
     */
    public int insertExpressAccount(ExpressAccount expressAccount);

    /**
     * 修改finance
     *
     * @param expressAccount finance
     * @return 结果
     */
    public int updateExpressAccount(ExpressAccount expressAccount);

    /**
     * 删除finance
     *
     * @param id finance主键
     * @return 结果
     */
    public int deleteExpressAccountById(Long id);

    /**
     * 批量删除finance
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteExpressAccountByIds(Long[] ids);
}
